import { defineStore } from 'pinia';
import { store } from '/@/store';
import { useUserStore } from '/@/store/modules/user';
import { ErrorMessageMode } from '/#/axios';
import { ArticlesApi } from '/@/api/sys/Articles';

interface ClubState {
  id: any;
}

export const userArticlesStore = defineStore({
  id: 'Articles',
  state: (): ClubState => ({
    id: useUserStore().getToken,
  }),
  getters: {},
  actions: {
  },
});

export function useArticlesStoreWithOut() {
  return userArticlesStore(store);
}
